{% load future wenlincms_tags wlcore_tags report_tags %}
<div class="pdf-divbox">
    <h1 class="pdf-headtitle">二、工商信息</h1>

    <div class="pdf-divbox">
        <h2 class="pdf-secondtitle">2.1 基本注册信息</h2>
        <table class="pdf-table">
            <tbody>
            {% if el_name_history %}
                <tr>
                    <th>曾用名</th>
                    <td colspan="3">{{ el_name_history }}</td>
                </tr>
            {% endif %}
            <tr>
                <th>工商注册号</th>
                <td>{{ el_post.REGNO|elweizhi }}</td>
                <th>法人代表</th>
                <td>{{ el_post.faren|elweizhi }}</td>
            </tr>
            <tr>
                <th>注册资本</th>
                <td>{{ el_post.ent_basic.REGCAP|elfloat:1|elweizhi }} 万</td>
                <th>注册资本币种</th>
                <td>
                    {% if el_post.ent_basic.REGCAPCUR %}
                        {{ el_post.ent_basic.REGCAPCUR }}
                    {% else %}
                        人民币
                    {% endif %}
                </td>
            </tr>
            <tr>
                <th>经营状态</th>
                <td>{{ el_post.ent_basic.get_ENTSTATUS_display|elweizhi }}</td>
                <th style="width: 120px;">企业(机构)类型</th>
                <td>{{ el_post.ent_basic.ENTTYPE|elweizhi }}</td>
            </tr>
            <tr>
                <th>注册日期</th>
                <td>{{ el_post.ent_basic.ESDATE|date:"Y-m-j"|elweizhi }}</td>
                <th>经营期限</th>
                <td>{{ el_post.ent_basic.OPFROM|date:"Y-m-j"|elweizhi }}
                    至 {{ el_post.ent_basic.OPTO|date:"Y-m-j"|elweizhi }}</td>
            </tr>
            <tr>
                <th>所在地</th>
                <td>{{ el_post.ent_class.region_id.fulltitle|elweizhi }}</td>
                <th>通讯地址</th>
                <td>{{ el_post.ent_basic.DOM|elweizhi }}</td>
            </tr>
            <tr>
                <th>注册机关</th>
                <td>{{ el_post.ent_basic.REGORG|elweizhi }}</td>
                <th>监管工商所</th>
                <td>{{ el_post.ent_basic.LOCALADM|elweizhi }}</td>
            </tr>
            {% if el_post.ent_basic.ORIREGNO or el_post.ent_basic.RECCAP %}
                <tr>
                    <th>原注册号 </th>
                    <td>{{ el_post.ent_basic.ORIREGNO|elweizhi }}</td>
                    <th>实收资本(万元) </th>
                    <td>{{ el_post.ent_basic.RECCAP|elweizhi }}</td>
                </tr>
            {% endif %}
            {% if el_post.ent_basic.EMPNUM or el_post.ent_basic.ENTPROPERTY %}
                <tr>
                    <th>员工人数 </th>
                    <td>{{ el_post.ent_basic.EMPNUM|elweizhi }}</td>
                    <th>企业性质 </th>
                    <td>{{ el_post.ent_basic.get_ENTPROPERTY_display|elweizhi }}</td>
                </tr>
            {% endif %}
            <tr>
                <th>联系电话 </th>
                <td>{{ el_post.ent_basic.TEL|elweizhi }}</td>
                <th>核准日期 </th>
                <td>{{ el_post.ent_basic.APPRDATE|elweizhi }}</td>
            </tr>
            <tr>
                <th>邮箱 </th>
                <td>{{ el_post.ent_basic.EMAIL|elweizhi }}</td>
                <th>经营场所 </th>
                <td>{{ el_post.ent_basic.OPLOC|elweizhi }}</td>
            </tr>
            {% if el_post.ent_basic.DOMPRORIGHT or el_post.ent_basic.INSFORM %}
                <tr>
                    <th>住所产权 </th>
                    <td>{{ el_post.ent_basic.get_DOMPRORIGHT_display|elweizhi }}</td>
                    <th>设立方式 </th>
                    <td>{{ el_post.ent_basic.get_INSFORM_display|elweizhi }}</td>
                </tr>
            {% endif %}
            {% if el_post.ent_basic.PARNUM or el_post.ent_basic.LIMPARNUM %}
                <tr>
                    <th>合伙人数 </th>
                    <td>{{ el_post.ent_basic.PARNUM|elweizhi }}</td>
                    <th>有限合伙人数 </th>
                    <td>{{ el_post.ent_basic.LIMPARNUM|elweizhi }}</td>
                </tr>
            {% endif %}
            {% if el_post.ent_basic.PARFORM or el_post.ent_basic.EXENUM %}
                <tr>
                    <th>合伙方式 </th>
                    <td>{{ el_post.ent_basic.get_PARFORM_display|elweizhi }}</td>
                    <th>执行人数 </th>
                    <td>{{ el_post.ent_basic.EXENUM|elweizhi }}</td>
                </tr>
            {% endif %}
            <tr>
                <th>经济行业分类 </th>
                <td colspan="3">{{ el_post.ent_class.nic_id.fulltitle|elweizhi }}</td>
            </tr>
            {% if el_post.ent_class.seic_id %}
                <tr>
                    <th>战兴产业分类 </th>
                    <td colspan="3">{{ el_post.ent_class.seic_id.fulltitle|elweizhi }}</td>
                </tr>
            {% endif %}
            {% if el_post.ent_basic.ABUITEM %}
                <tr>
                    <th>许可经营项目</th>
                    <td colspan="3">{{ el_post.ent_basic.ABUITEM|elweizhi }}</td>
                </tr>
            {% endif %}
            {% if el_post.ent_basic.CBUITEM %}
                <tr>
                    <th>一般经营项目</th>
                    <td colspan="3">{{ el_post.ent_basic.CBUITEM|elweizhi }}</td>
                </tr>
            {% endif %}
            <tr>
                <th style="width: 120px;">经营(业务)范围</th>
                <td colspan="3">{{ el_post.ent_basic.OPSCOPE|elweizhi }}</td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
{% if el_cancel %}
    <div class="pdf-divbox">
        <table class="pdf-table">
            <tr>
                <th style="width: 150px;">注销日期</th>
                <th>注销原因</th>
                <th style="width: 150px;">注销机关</th>
            </tr>
            <tr>
                <td>{{ el_cancel.CANDATE|date:"Y-m-j"|elweizhi }}</td>
                <td>{{ el_cancel.get_CANREA_display|elweizhi }}</td>
                <td>{{ el_cancel.CANAUTH|elweizhi }}</td>
            </tr>
        </table>
    </div>
{% endif %}

{% if el_revoke %}
    <div class="pdf-divbox">
        <table class="pdf-table">
            <tr>
                <th style="width: 150px;">吊销日期</th>
                <th style="width: 300px;">违法行为</th>
                <th style="width: 300px;">吊销依据</th>
            </tr>
            <tr>
                <td>{{ el_revoke.REVDATE|date:"Y-m-j"|elweizhi }}</td>
                <td>{{ el_revoke.ILLEGACT|elweizhi }}</td>
                <td>{{ el_revoke.REVBASIS|elweizhi }}</td>
            </tr>
        </table>
    </div>
{% endif %}

<div class="pdf-divbox">
    <h2 class="pdf-secondtitle">2.2 股东信息</h2>
    {% if  el_invs %}
        <table class="pdf-table">
            <thead>
            <tr>
                <th style="width: 20px;"></th>
                <th>股东名称</th>
                <th style="width: 120px;">认缴出资额(万元)</th>
                <th style="width: 120px;">实缴出资额(万元)</th>
                <th style="width: 80px;">出资币种</th>
                <th style="width: 90px;">出资比例(%)</th>
                <th style="width: 80px;">出资日期</th>
                <th style="width: 100px;">出资方式</th>
            </tr>
            </thead>
            <tbody>
            {% for res in el_invs %}
                <tr>
                    <td class="pdf-counter">{{ forloop.counter }}</td>
                    {% if res.INV %}
                        <td>{{ res.INV|elweizhi }}</td>
                    {% else %}
                        <td>{{ res.INV|elweizhi }}</td>
                    {% endif %}
                    <td>{{ res.SUBCONAM|elfloat:1|elweizhi }}</td>
                    <td>{{ res.ACCONAM|elfloat:1|elweizhi }}</td>
                    <td>{{ res.CURRENCY|elweizhi }}</td>
                    <td>{{ res.CONPROP|elfloat:3|elweizhi }}</td>
                    <td>{{ res.CONDATE|date:"Y-m-j"|elweizhi }}</td>
                    <td>{{ res.get_CONFORM_display|elweizhi }}</td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
    {% else %}
        <p class="pdf-nodata">暂无</p>
    {% endif %}
</div>

<div class="pdf-divbox">
    <h2 class="pdf-secondtitle">2.3 高管信息</h2>
    {% if el_managers %}
        <table class="pdf-table">
            <thead>
            <tr>
                <th style="width: 20px;"></th>
                <th style="width: 120px;">姓名</th>
                <th>职务</th>
                <th style="width: 90px;">性别</th>
                <th style="width: 90px;">出生年份</th>
                <th style="width: 90px;">任职自</th>
                <th style="width: 90px;">任职至</th>
            </tr>
            </thead>
            <tbody>
            {% for manager in el_managers %}
                <tr>
                    <td class="pdf-counter">{{ forloop.counter }}</td>
                    <td>{{ manager.NAME|elweizhi }}</td>
                    <td>{{ manager.get_POSITION_display|elweizhi }}</td>
                    <td>{{ manager.get_SEX_display|elweizhi }}</td>
                    <td>{{ manager.birthday|elweizhi }}</td>
                    <td>{{ manager.OFFHFROM|date:"Y-m-j"|elweizhi }}</td>
                    <td>{{ manager.OFFHTO|date:"Y-m-j"|elweizhi }}</td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
    {% else %}
        <p class="pdf-nodata">暂无</p>
    {% endif %}
</div>

<div class="pdf-divbox">
    <h2 class="pdf-secondtitle">2.4 注册变更历史</h2>
    {% if  el_modifys %}
        <table class="pdf-table">
            <thead>
            <tr>
                <th style="width: 20px;"></th>
                <th style="width: 100px;">变更日期</th>
                <th style="width: 150px;">变更项</th>
                <th style="width: 300px;">变更前</th>
                <th style="width: 300px;">变更后</th>
            </tr>
            </thead>
            <tbody>
            {% for modify in el_modifys %}
                <tr>
                    <td class="pdf-counter">{{ forloop.counter }}</td>
                    <td>{{ modify.ALTDATE|date:"Y-m-j"|elweizhi }}</td>
                    <td>{{ modify.get_ALTITEM_display|elweizhi }}</td>
                    <td>{{ modify.ALTBE|elweizhi }}</td>
                    <td>{{ modify.ALTAF|elweizhi }}</td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
    {% else %}
        <p class="pdf-nodata">暂无</p>
    {% endif %}
</div>
